(function(){
function switchTab(tabcontainer) {
 if ('string' == typeof tabcontainer)
 tabs = document.getElementById(tabcontainer).getElementsByTagName('a');
 var flag = tabs[0];
 for (i = 0, n = tabs.length; i < n; ++i){
 tabs[i].onclick = tabs[i].onfocus = function(){
 var related = document.getElementById(this.hash.replace('#', ''));
 var flagdiv = document.getElementById(flag.hash.replace('#', ''));
 related.style.display = 'block';
 this.parentNode.className = 'current';
 if (this != flag) {
 flagdiv.style.display = 'none';
 flag.parentNode.className = '';
 }
 flag = this;
 return false;

 }
 }
}
switchTab('tab-cat');
})();
function gotoYisi() {
 tabs = document.getElementById('tab-cat').getElementsByTagName('a');
 tabs[1].onclick();
}